/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.client;

import br.com.client.LoginPresenter.Display;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 *
 * @author Wanderley Filho
 */
public class LoginView extends Composite implements Display{

    Button entrar;
    HTML recuperar;
    HTML cadastro;
    TextBox login;
    Label loginTexto;
    Label senhaTexto;
    PasswordTextBox senha;
    VerticalPanel loginPanel;

    LoginView() {
        init();
        initWidget(loginPanel);
    }

    private void init() {
        entrar = new Button("Entrar");
        recuperar = new HTML("<a href='http://www.google.com'>Recuperar senha</a>");
        cadastro = new HTML("<a >Cadastrar</a>");
        login = new TextBox();
        loginTexto = new Label("Login");
        senhaTexto = new Label("Senha");

        senha = new PasswordTextBox();

        loginPanel = new VerticalPanel();

        loginPanel.add(loginTexto);
        loginPanel.add(login);
        loginPanel.add(senhaTexto);
        loginPanel.add(senha);
        loginPanel.add(entrar);
        loginPanel.add(recuperar);
        loginPanel.add(cadastro);
    }

    @Override
    public HTML getCadastro() {
        
        return cadastro;
    }

}
